<template>
	<view class="goods-detail-params m-20 p-20 radius-20 bg-white">
		<view class="title">商品参数</view>
		<view class="item-box">
			<view class="item" v-for="item,index in props.goodsParamsList" :key="index">
				<view class="lab">
					<text class="tit">{{ item.name }}</text>
				</view>
				<view class="val">
					<text class="tit">{{ item.value }}</text>
				</view>
			</view>
		</view>
	</view>
</template>
<script setup lang="ts">
	import type { GoodsParamsType } from "@/core/models";

	const props = withDefaults(defineProps<{
		goodsParamsList : Array<GoodsParamsType>,
	}>(), {
		goodsParamsList: () => [],
	});
</script>

<style lang="scss" scoped>
	@import './goods-detail-params.scss';
</style>